package com.shiguiwu.springmybatis.mybatis;

import com.shiguiwu.springmybatis.mybatis.mapper.BookMapper;

/**
 * @description:
 * @author: stone
 * @date: Created by 2021/6/21 22:30
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.mybatis
 */
public class BookTests {

    public static void main(String[] args) throws Exception {
        insert();
    }


    public static void insert() throws Exception {
        Book k = new Book();
        k.setBookName("水浒城");
        BookUtils.callMapper(BookMapper.class, bookMapper -> {
            bookMapper.insert(k);
            return null;
        });
    }
}
